package com.richapp.launcher.database.system.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

/**
 * Created by jack on 2015/4/14 0014.
 */
@DatabaseTable(tableName = "userMachine")
public class UserMachine {

    @DatabaseField(generatedId = true)
    private int userMachineId;  //用户家电表主键

    @DatabaseField(columnName = "userName",canBeNull = false,uniqueCombo = true)
    private String userName;    //用户名

    @DatabaseField(columnName = "boxCpuId")
    private String boxCpuId;    //所属机顶盒cpuId

    @DatabaseField(columnName = "brandModelId",canBeNull = false)
    private int brandModelId;   //品牌型号ID

    @DatabaseField(columnName = "roomName")
    private String roomName;    //房间名

    @DatabaseField(columnName = "machineName",canBeNull = false,uniqueCombo = true)
    private String machineName; //家电名

    @DatabaseField(columnName = "status",defaultValue = "")
    private String status; //设备状态json数据

    @DatabaseField(columnName = "addType",defaultValue = "3")
    private int addType;    //添加的类型 1-码库匹配， 2-型号搜索， 3-红外学习

    private List<UserMachineButton> buttonList = null;

    @DatabaseField(columnName = "machineTypeId",defaultValue = "0")
    private int machineTypeId; //设备类型ID

    private String brandName;  //品牌名

    private String modelName; //型号名

    @DatabaseField(columnName = "bindBoxCpuId",canBeNull = true)    //绑定的红外探测器对应的boxCpuId
    private String bindBoxCpuId;

    @DatabaseField(columnName = "bindDeviceId",canBeNull = true)    //绑定的红外探测器对应的机顶盒deviceId
    private String bindDeviceId;

    @DatabaseField(columnName = "bindDeviceNumber",canBeNull = true)    //绑定的红外探测器对应的机顶盒deviceNumber
    private String bindDeviceNumber;

    @DatabaseField(columnName = "bindWay",canBeNull = true) //绑定的红外探测器对应的机顶盒way
    private String bindWay;

    public UserMachine(){

    }

    public int getUserMachineId() {
        return userMachineId;
    }

    public void setUserMachineId(int userMachineId) {
        this.userMachineId = userMachineId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getBrandModelId() {
        return brandModelId;
    }

    public void setBrandModelId(int brandModelId) {
        this.brandModelId = brandModelId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public List<UserMachineButton> getButtonList() {
        return buttonList;
    }

    public void setButtonList(List<UserMachineButton> buttonList) {
        this.buttonList = buttonList;
    }

    public String getBoxCpuId() {
        return boxCpuId;
    }

    public void setBoxCpuId(String boxCpuId) {
        this.boxCpuId = boxCpuId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getMachineTypeId() {
        return machineTypeId;
    }

    public void setMachineTypeId(int machineTypeId) {
        this.machineTypeId = machineTypeId;
    }

    public int getAddType() {
        return addType;
    }

    public void setAddType(int addType) {
        this.addType = addType;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getBindBoxCpuId() {
        return bindBoxCpuId;
    }

    public void setBindBoxCpuId(String bindBoxCpuId) {
        this.bindBoxCpuId = bindBoxCpuId;
    }

    public String getBindDeviceId() {
        return bindDeviceId;
    }

    public void setBindDeviceId(String bindDeviceId) {
        this.bindDeviceId = bindDeviceId;
    }

    public String getBindDeviceNumber() {
        return bindDeviceNumber;
    }

    public void setBindDeviceNumber(String bindDeviceNumber) {
        this.bindDeviceNumber = bindDeviceNumber;
    }

    public String getBindWay() {
        return bindWay;
    }

    public void setBindWay(String bindWay) {
        this.bindWay = bindWay;
    }
}
